package com.banciyuan.bcywebview.biz.detail.complex.holder;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.banciyuan.bcywebview.biz.detail.comment.BaseViewComment;

import de.greenrobot.daoexample.model.DetailComment;
import de.greenrobot.daoexample.model.DetailType;


/**
 * Created by squall on 2016/8/10.
 */
public class CommentHolder extends RecyclerView.ViewHolder {

    private BaseViewComment mBaseViewComment;

    public CommentHolder(View itemView, String workAuhtorUid) {
        super(itemView);
        mBaseViewComment = new BaseViewComment(itemView);
        mBaseViewComment.setCommonIds(workAuhtorUid, "");
    }

    public void setData(int position, final DetailComment comment, final Context context, final boolean at, DetailType detailType, boolean isComment) {
        mBaseViewComment.setData(position, comment, context, at, detailType, isComment);
    }
}
